package com.dealer.management.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dealer.management.entity.Product;

public interface ProductService {
    
    IPage<Product> getProductPage(Page<Product> page, String name, Long categoryId);
    
    Product getProductById(Long id);
    
    boolean saveProduct(Product product);
    
    boolean updateProduct(Product product);
    
    boolean deleteProduct(Long id);
    
    boolean updateStock(Long id, Integer quantity);
}
